package cn.ibizlab.odoo.core.odoo_mrp.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_mrp.domain.Mrp_document;
import cn.ibizlab.odoo.core.odoo_mrp.filter.Mrp_documentSearchContext;

/**
 * 实体[Mrp_document] 服务对象接口
 */

public interface IMrp_documentService{
     boolean update(Mrp_document mrp_document) ;
     boolean create(Mrp_document mrp_document) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     void createBatch(List<Mrp_document> mrp_documents, int batchSize) ;
     boolean remove(Integer id) ;
     Mrp_document get(Integer id) ;
     Mrp_document get(Mrp_document mrp_document) ;
     void updateBatch(List<Mrp_document> mrp_documents, int batchSize) ;

    /**
     * 查询集合 默认查询
     */
    Page<Mrp_document> searchDefault(Mrp_documentSearchContext context) ;

    /**
     * 根据用户查询
     */
     Page<Mrp_document> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Mrp_document> selectByOdoo_write(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Mrp_document convert2Domain(cn.ibizlab.odoo.core.client.model.Imrp_document model ,Mrp_document domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Imrp_document convert2Model(Mrp_document domain , cn.ibizlab.odoo.core.client.model.Imrp_document model);

}
